<?php
require_once FOREGROUND_COMMON_ACTION_SERVICE_DIR . '/ajax.php';

class foreground_member_check_action_service extends foreground_ajax_common_action_service
{
    protected static $_instance;

    public static function get_instance()
    {
        if (null === self::$_instance) {
            self::$_instance = new self();
        }

        return self::$_instance;
    }


    protected function _current_page_process()
    {	     		     
	    //var_dump(__METHOD__); exit();
	
	    $result = array('status' => 0, 'message' => '', 'data' => array());
		    
	    $action_data = wwy_action::$data;
	    $session_member_info = $action_data['session_member_info'];
	    $member_id = $session_member_info['id'];	    
	    
        if(empty($member_id)){
            $result['status']   =  -1;
            $result['message']  = '未登录';
        }else{
            $result['status']   =  1;
            $result['message']  = '已登录';
        }
	
	    self::set_view_status($result['status']);
	    self::set_view_message($result['message']);
    }
}